﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebNext.Domain.Entities;

namespace WebNext.Domain.Interfaces
{
	public interface IEntitesRepository<T> where T : Entity
	{
		void Save(T entity);
		void Delete(T entity);
		T GetById(int id);
		IEnumerable<T> GetAll();
		IEnumerable<T> GetAll(int pageNumber, int pageSize);
		int GetCount();
		void Rollback();
	}
}
